package com.team.forum.async.handler;

import java.util.Arrays;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.team.forum.async.EventHandler;
import com.team.forum.async.EventType;
import com.team.forum.dao.AnswerDao;
import com.team.forum.dao.UserDao;
import com.team.forum.util.HostHolder;

/**
 * 评论的处理器
 * 
 * @author xiezhiping
 *
 */
@Component
public class CommentHandler implements EventHandler{

	@Autowired
	UserDao userDao;
	
	@Autowired
	HostHolder hostHolder;
	
	@Autowired
	AnswerDao answerDao;

	@Override
	public List<EventType> getSupportEventTypes() {
		return Arrays.asList(EventType.COMMENT);
	}

}
